package com.marketingexpert.controller.usermgnt;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import com.marketingexpert.service.usermgnt.UserService;

public class ExpiredUserController implements Controller {

	private String expiredSucc;
	
	private UserService userService;
	
	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		String userId = request.getParameter("userId");
		String isactive = request.getParameter("isactive");
		
		getUserService().expiredUserById(userId,isactive);
		
		return new ModelAndView(expiredSucc);
	}

	public String getExpiredSucc() {
		return expiredSucc;
	}

	public void setExpiredSucc(String expiredSucc) {
		this.expiredSucc = expiredSucc;
	}

	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	
	

}
